const Layout2 = () => import('@/layout/index.vue')
const List = () => import('@/views/test2/home-list.vue')
const Add = () => import('@/views/test2/home-add.vue')
const Check = () => import('@/views/test2/home-check.vue')

export default [
  {
    path: '/test2',
    component: Layout2,
    name: 'test2',
    meta: {
      title: '房屋管理',
    },
    icon: 'el-icon-office-building',
    children: [
      {
        path: '',
        name: 'home-list',
        component: List,
        meta: {
          title: '房屋列表',
        },
        icon: 'el-icon-school',
      },
      {
        path: 'home-add',
        name: 'home-add',
        component: Add,
        meta: {
          title: '房屋增加',
        },
        icon: 'el-icon-plus',
        hidden: true, // 不在菜单中显示
      },
      {
        path: 'home-check',
        name: 'home-check',
        component: Check,
        meta: {
          title: '房屋查看',
        },
        icon: 'el-icon-plus',
        hidden: true, // 不在菜单中显示
      },
    ],
  },
]
